from myUtils import logger, llm_client

logger.add("./logs/db-info.log", rotation="4 week", retention="8 weeks")
# test-logger
logger.info("hello")
logger.debug("debug")
logger.warning("warn")
logger.error("error")

messages = [{"role": "user", "content": "你好,你是谁"}]

# test-chat
print(llm_client.chat(messages=messages).content)

# # test-chat-stream
# for x in llm_client.chat_stream(messages):
#     print(x, end="", flush=True)
